package com.lancoo.ccas53.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 节假日安排
 * </p>
 *
 * @author quin.song
 * @since 2024-05-21
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(of = {"taskId", "holidayDate"})
@ApiModel(value = "Holiday对象", description = "节假日安排")
public class Holiday implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("节假日id")
    @TableId(value = "holiday_id", type = IdType.AUTO)
    private Integer holidayId;

    private Integer taskId;

    @ApiModelProperty("对应日期")
    private LocalDate holidayDate;

    @ApiModelProperty("节假日名称")
    private String holidayName;

    @ApiModelProperty("1、放假 2、补班")
    private Integer flag;
}
